package com.mao.pojo;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;


//等价于<bean id="user" class="com.mao.pojo.User"/>
@Component
@Scope("prototype")
public class User {
//    public String name="maoge";
    @Value("maomao")
    public String name;
}
